﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<WebMVC.Models.TaxiItemViewModel>" %>

<div class="taxi-item">
    <h3><%=Model.Name %></h3>
    
    <a href="<%=Url.Action("Details","Taxi", new{id=Model.Id}) %>" >
    <img src="<%=Model.LogoPath %>" alt="<%=Model.Name %> logo" title="<%=Model.Name %>"/>
    </a>
    <div class="taxi-item-details">
        <table>
            <tr>
                <td>
                <%=ViewResources.TaxiStrings.PricePerKM %>
                </td>
                <td class="lastcol">
                <%=Model.PricePerKM %>
                </td>
            </tr>
            <tr>
                <td>
                <%=ViewResources.TaxiStrings.MinPrice %>
                </td>
                <td class="lastcol">
                <%=Model.MinPrice %>
                </td>
            </tr>
            
            <tr>
                <td>
                <%=String.Format(ViewResources.TaxiStrings.UpToKMPrice,Model.MinPriceKM)%>
                </td>
                <td class="lastcol">
                <%=Model.MinPrice%>
                </td>
            </tr>
           
            <tr>
                <td>
                <%=ViewResources.TaxiStrings.ReviewsCountLabel %>
                </td>
                <td class="lastcol">
                <%=Model.Reviews %>
                </td>
            </tr>
            <tr>
                <td>
                <%=ViewResources.TaxiStrings.RatingLabel %>
                </td>
                <td class="lastcol small-rating">
                <%=Html.DisplayFor(m => m.Rating) %>
                </td>
            </tr>
            <tr class="tel">
                <td>
                <%=ViewResources.TaxiStrings.PhoneLabel %>
                </td>
                <td class="lastcol">
                <%=Model.PhoneNumber %>
                </td>
            </tr>
        </table>
    </div>
</div>